Report question

Question: Casting pointers and the ternary ?: operator. Have I reinvented the wheel?