new features

Added constants, casting and custom types.