Added alot of type conversion functionality