[TypeCast] when allowing nullable parameter, return null