Implemented astype methods