Fix NULL pointer dereference when a TypeMapByColumn is marked before #initialize

Remove unnecessary type cast.