Cast to nullable versions of types